The Slider Component > FSlider.setTickFrequency()

 

FSlider.setTickFrequency()

Availability

Flash Player 6.

Usage

mySlider_sld.setTickFrequency (frequency)

Parameters

frequency A number specifying the number of ticks to be displayed on the slider.

Returns


Nothing

Description

Sets the number of tick marks that will be displayed on the slider. The tick placement on the scale will be even. In a Slider with a minimum value of 0 and a maximum value of 50 if you setTickFrequency(6) than a tick will appear at 0,10,20,30,40,50. If frequency is not greater than or equal to 2 than frequency will be set to 2; this is because there is always an implied minimum and maximum tick mark.

 

Note

Tick marks will only appear if setTickStyle is set to "top", "bottom" or "both".


Example

The slider_setTickStyle.fla example file contains an example of using this method.

The following code sets the tick frequency.

mySlider_sld.setSliderProperties(0,50);
mySlider_sld.setTickFrequency(6);
trace(mySlider_sld.getTickFrequency());//traces 6


See also

FSlider.getTickFrequency()